package org.finir.fakturisanje.rich.web.page;

import java.io.Serializable;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.security.Identity;

@Name("homePage")
@Scope(ScopeType.PAGE)
public class HomePage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2930389206710980725L;
	@In
	Identity identity;

	public String logout() {
		identity.logout();
		return "/login.xhtml";
	}

}
